<?php

namespace  app\information\validate;

use think\Validate;

class InformationValidate extends Validate
{

        protected $rule = [
            'school_id' => 'require|gt:0',
            'title' => 'require',
            'content' => 'require',
            'solved_uid' => 'require|gt:0',
        ];

        protected $message = [
            'title.require' => '标题不能为空',
            'content.require' => '内容不能为空',
            'solved_uid.require' => '完成者不能为空',
            'school_id.gt' => '请选择校区',
            'solved_uid.gt' => '请选择完成者',
        ];

}